                <!-- table -->
				<div class="box">
					<!-- box / title -->
					<div class="title">
						<h5>
                            <?=$title;?>
                            <?php if($date_start!='-')
                                        echo ' Periode. '.indonesian_date($date_start);
                                        echo ' s/d ';
                                        echo indonesian_date($date_end); ?>
                        </h5>
						<div class="search">
                        <?php if($date_start!='-'): ?>
                            <?=form_open('cashflow/tax/getTaxPPH23Export')?>
								<div class="input">
                                    <label class="search"><?=lang('export')?></label>
									<?=form_dropdown('export',config('export'))?>
								</div>
								<div class="button">
									<?=form_submit('submit',lang('export'))?>
								</div>
							<?=form_close()?>
                        
                        <?php else:?>
                            <?=form_open('cashflow/tax/getTaxPPH23')?>
								<div class="input">
                                    <?=form_dropdown('day',config('day'),date('dd'))?>
                                    <?=form_dropdown('month',config('month'),date('m'))?>
                                    <?=form_dropdown('year',config('year'),date('Y'))?>
								</div>
                                <div class="input">
									-
								</div>
                                <div class="input">
									<?=form_dropdown('day2',config('day'),date('dd'))?>
                                    <?=form_dropdown('month2',config('month'),date('m'))?>
                                    <?=form_dropdown('year2',config('year'),date('Y'))?>
								</div>
                                
								<div class="button">
									<input type="submit" name="submit" value="Search" />
								</div>
							<?=form_close()?>
                         <?php endif;?>   
						</div>
					</div>
					<!-- end box / title -->
					<div class="table">
                    
                        <?php if($this->session->flashdata('success')):?>
						<div id="message-success" class="message message-success">
							<div class="image">
								<img src="resources/images/icons/success.png" alt="Success" height="32" />
							</div>
							<div class="text">
								<h6>Send Email</h6>
								<span>Send Email Success to Recipient , to Edit email set to Settings Menu !</span>
							</div>
							<div class="dismiss">
									<a href="#message-success"></a>
							</div>
						</div>
						<?php elseif($this->session->flashdata('error')):?>
						<div id="message-error" class="message message-error">
								<div class="image">
									<img src="resources/images/icons/error.png" alt="Error" height="32" />
								</div>
								<div class="text">
									<h6>Send Email</h6>
									<span>Send Email Error to Recipient , to Edit email set to Settings Menu !</span>
								</div>
								<div class="dismiss">
									<a href="#message-error"></a>
								</div>
						</div>
						<?php endif;?>
                        
                        
                        <?php if($date_start!='-'):?>
                        <div class="action">
                            <?=anchor('cashflow/tax/getTaxPPH23Reset','Kembali Ke Awal');?>
			         	</div>
                        <?php endif;?>
                        
						<table>
							<thead>
								<tr>
									<th><?=lang('no')?></th>
                                    <th><?=lang('date')?></th>
                                    <th><?=lang('service')?></th>
                                    <th><?=lang('base')?></th>
                                    <th><?=lang('fare')?></th>
                                    <th><?=lang('pph')?></th>
                                    <th><?=lang('tax_payer')?></th>
                                    <th><?=lang('npwp')?></th>
                                    <th><?=lang('address')?></th>
								</tr>
                                
							</thead>
							<tbody>
                                <?php 
                                    $i=1;
                                    $amount=0;
                                    $pph=0;
                                ?>
                                <?php foreach($taxs as $val): ?>
                                <tr>
                                    <td style="width:2%;"><?=$i?></td>
                                    <td><?=indonesian_date($val['Tanggal'])?></td>
                                    <td class="right"><?=decimal($val['Amount'],2)?></td>
                                    <td class="right"><?=decimal($val['Amount'],2)?></td>
                                    <td class="right"><?=$val['Persentase']?></td>
                                    <td><?=decimal($val['PPh'],2);?></td>
                                    <td><?=$val['Penerima'];?></td>
                                    <td><?=$val['NPWP']?></td>
                                    <td><?=$val['alamat_1']?></td>
                                </tr>
                                <?php
                                    $i++;
                                    $amount=$amount + $val['Amount'];
                                    $pph =  $pph + $val['PPh'];
                                    endforeach;?>
							</tbody>
                            <tfoot>
								<tr>
									<th></th>
                                    <th><?=lang('total')?></th>
                                    <th></th>
                                    <th><?=decimal($amount,2);?></th>
                                    <th></th>
                                    <th><?=decimal($pph,2);?></th>
                                    <th></th>
                                    <th></th>
                                    <th></th>
								</tr>
                                
							</tfoot>
						</table>
                        
                        <?php if($date_start!='-'):?>
                        <div class="action">
                            <?=anchor('cashflow/tax/getTaxPPH23Reset','Kembali Ke Awal');?>
			         	</div>
                        <?php endif;?>
                        
					</div>
				</div>
				<!-- end table -->